import layoutVariety.Widget
import scala.collection.immutable.List

package dataflowVariety{
	//will be created once for each "variable" seen by the parser
	class CustomAttribute (name:String)
	{	
		private var Value = ""
		
		private var observers = List[Widget]()
	
		def getName = name
		
		def getVal = Value
		
		def setVal(changeValue:String)
		{
			Value = changeValue
			for(w<-observers) w.update(getName,Value)
		}
		
		def regiserObserver(obs:Widget)
		{
			observers::=obs
		}
		
	}
}